package com.tc.common.enums;

import com.tc.common.domain.BaseEntity;

import java.io.Serializable;

/**
 * 用户状态
 *
 * @author ruoyi
 */
public enum UserStatus implements BaseEnum {
    OK("0", "正常"), DISABLE("1", "停用"), DELETED("2", "删除");

    private String code;
    private String desc;

    UserStatus(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    @Override
    public String getDesc() {
        return desc;
    }

    /**
     * 枚举数据库存储值
     */
    @Override
    public Serializable getValue() {
        return code;
    }}
